package service;


import org.apache.ibatis.annotations.Param;
import pojo.*;

import java.util.List;

public interface ProductService extends BaseService<Product>  {
    Product getProduct(Product product);
    Page<Product> getAllByPage1(Page<Product> page);
    int getProAdd(Product product);
    int getProupd(Product product);
    int getProDel(String productCode);
    List<Product> productAllByPage(Page<Product> page, Product product);
    int productCount(Page<Product> page, Product product);
    List<Product> productAllByPage1(Page<Product> page);
    int productCount1(Page<Product> page);
    int addCheck(Checkstock checkstock);

    List<Stockrecord> outStockReportPage(Page<Stockrecord> page,Stockrecord stockrecord);
    int outStockReportCount(Page<Stockrecord> page,Stockrecord stockrecord);
    List<Stockrecord> outStockReportPage1(Stockrecord stockrecord);
    int outStockReportCount1(Stockrecord stockrecord);

    List<Stockrecord> inStockReportPage(Page<Stockrecord> page,Stockrecord stockrecord);
    int inStockReportCount(Page<Stockrecord> page,Stockrecord stockrecord);
    List<Stockrecord> inStockReportPage1(Stockrecord stockrecord);
    int inStockReportCount1(Stockrecord stockrecord);

    List<Stockrecord> stockChangePage(Page<Stockrecord> page,Stockrecord stockrecord);
    int stockChangeCount(Page<Stockrecord> page,Stockrecord stockrecord);
    List<Stockrecord> stockChangePage1(Stockrecord stockrecord);
    int stockChangeCount1(Stockrecord stockrecord);
    List<Payrecord> getPayRecord(Page<Payrecord> page,Payrecord payrecord);
    int getPayRecordCount(Page<Payrecord> page,Payrecord payrecord);

    List<Payrecord> getPayRecord1(Page<Payrecord> page,Payrecord payrecord);
    int getPayRecordCount1(Page<Payrecord> page,Payrecord payrecord);

    List<Payrecord> getPayRecordInMoney(Payrecord payrecord);
    int getPayRecordInMoneyCount(Payrecord payrecord);

    List<Payrecord> getPayRecordOutMoney(Payrecord payrecord);
    int getPayRecordOutMoneyCount(Payrecord payrecord);

//    Payrecord getPrice(Payrecord payrecord);
//    Page<Payrecord> getPayRecord(Page<Payrecord> page,String date);
//    Page<Payrecord> getPayRecord1(Page<Payrecord> page,String date);
}
